<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="js/common.js"></script>
</head>
<body>
<input type="text" id="a" size="5">&nbsp;+&nbsp;<input size="5" type="text" id="b">&nbsp;<span id="msg"></span><br>
<br>
<input type="button" value="出题" onclick="ok()">&nbsp;
<input type="button" value="计算" onclick="show()">
<script>

    function ok(){
        i('a').value = getRandom(0,99);
        var aa = document.getElementById('a');  //aa 就是表单标签


        i('b').value = getRandom(0,99);
    }

    function show(){
        i('msg').innerHTML = parseInt(i('a').value) + parseInt(i('b').value);
    }
</script>
</body>
</html>